﻿using iMES.Entity.SystemModels;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
 

namespace iMES.Entity.DomainModels
{
    [Entity(TableCnName = "来料检验单-检验项", TableName = "Mass_Incoming_DetItems", DBServer = "SysDbContext")]
    public partial class Mass_Incoming_DetItems : SysEntity
    {
        /// <summary>
        /// 来料检验单检测项主键
        /// </summary>
        [Key]
        [Display(Name = "来料检验单检测项主键")]
        [Column(TypeName = "int")]
        [Editable(true)]
        [Required(AllowEmptyStrings = false)]
        public int Mass_Incoming_DetItems_ID { get; set; }

        /// <summary>
        /// 来料检验单主键
        /// </summary>
        [Display(Name = "来料检验单主键")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int Mass_Incoming_ID { get; set; }

        /// <summary>
        /// 来料检验单-检验模版-检验项主键
        /// </summary>
        [Display(Name = "检验模版检验项主键")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int Mass_Incoming_DetItems_DetTem_ItemID { get; set; }

        /// <summary>
        /// 模版主键
        /// </summary>
        [Display(Name = "模版主键")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int Mass_Incoming_DetItems_DetTemID { get; set; }

        /// <summary>
        /// 检测项主键
        /// </summary>
        [Display(Name = "检测项主键")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int Mass_Incoming_DetItems_DetItemsID { get; set; }

        /// <summary>
        /// 检测项名称
        /// </summary>
        [Display(Name = "检测项名称")]
        [MaxLength(100)]
        [Column(TypeName = "nvarchar(100)")]
        [Editable(true)]
        public string Mass_Incoming_DetItems_DetItemsName { get; set; }

        /// <summary>
        /// 检测项编码
        /// </summary>
        [Display(Name = "检测项编码")]
        [MaxLength(100)]
        [Column(TypeName = "varchar(100)")]
        [Editable(true)]
        public string Mass_Incoming_DetItems_DetItemsCode { get; set; }

        /// <summary>
        /// 检测项类型
        /// </summary>
        [Display(Name = "检测项类型")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string Mass_Incoming_DetItems_DetItemsType { get; set; }

        /// <summary>
        /// 检测工具
        /// </summary>
        [Display(Name = "检测工具")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string Mass_Incoming_DetItems_DetItemsTool { get; set; }

        /// <summary>
        /// 检测要求
        /// </summary>
        [Display(Name = "检测要求")]
        [MaxLength(200)]
        [Column(TypeName = "nvarchar(200)")]
        [Editable(true)]
        public string Mass_Incoming_DetItems_DetItemsRequire { get; set; }

        /// <summary>
        /// 标准值
        /// </summary>
        [Display(Name = "标准值")]
        [DisplayFormat(DataFormatString = "12,2")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? Mass_Incoming_DetItems_DetItemsStandardValue { get; set; }

        /// <summary>
        /// 误差上限
        /// </summary>
        [Display(Name = "误差上限")]
        [DisplayFormat(DataFormatString = "12,2")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? Mass_Incoming_DetItems_DetItemsErrorUp { get; set; }

        /// <summary>
        /// 误差下限
        /// </summary>
        [Display(Name = "误差下限")]
        [DisplayFormat(DataFormatString = "12,2")]
        [Column(TypeName = "decimal")]
        [Editable(true)]
        public decimal? Mass_Incoming_DetItems_DetItemsErrorDown { get; set; }

        /// <summary>
        /// 致命缺陷数量
        /// </summary>
        [Display(Name = "致命缺陷数量")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Mass_Incoming_DetItems_FatelNum { get; set; }

        /// <summary>
        ///严重缺陷数量
        /// </summary>
        [Display(Name = "严重缺陷数量")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Mass_Incoming_DetItems_SevereNum { get; set; }

        /// <summary>
        /// 轻微缺陷数量
        /// </summary>
        [Display(Name = "轻微缺陷数量")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? Mass_Incoming_DetItems_SlightNum { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [Display(Name = "备注")]
        [MaxLength(1000)]
        [Column(TypeName = "nvarchar(1000)")]
        [Editable(true)]
        public string Mass_Incoming_DetItems_Remark { get; set; }

        /// <summary>
        /// 创建人编号
        /// </summary>
        [Display(Name = "创建人编号")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? CreateID { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [Display(Name = "创建人")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(30)")]
        [Editable(true)]
        public string Creator { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name = "创建时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 修改人编号
        /// </summary>
        [Display(Name = "修改人编号")]
        [Column(TypeName = "int")]
        [Editable(true)]
        public int? ModifyID { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        [Display(Name = "修改人")]
        [MaxLength(30)]
        [Column(TypeName = "nvarchar(30)")]
        [Editable(true)]
        public string Modifier { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Display(Name = "修改时间")]
        [Column(TypeName = "datetime")]
        [Editable(true)]
        public DateTime? ModifyDate { get; set; }
    }
}
